#include "QtUI/QtProjectViewBase.hpp"
#include "QtUI/Impl/QtProjectViewImpl.qth"

namespace QtUI
{

QtProjectViewBase::QtProjectViewBase( Ctrl::ProjectController& ctrler )
	: AbsUI::ProjectView( ctrler)
	, pImpl_( new Impl::QtProjectViewImpl( *this))
{
}

// ---------------------------------------------------------------------------------------------------------------------

void QtProjectViewBase::changeProject( Model::Project* pNewProject )
{
	Q_EMIT pImpl_->projectChangedSignal( pNewProject);
}

// ---------------------------------------------------------------------------------------------------------------------

void QtProjectViewBase::changeProjectDescription( const Model::Project& changedProject )
{
	Q_EMIT pImpl_->projectDescriptionChangedSignal( changedProject);
}

// ---------------------------------------------------------------------------------------------------------------------

QtProjectViewBase::~QtProjectViewBase()
{
	delete pImpl_;
}

} // namespace QtUI